package com.bw.myapply_module.applycome

import com.kf.common.entity.BaseEntity
import com.kf.common.mvi.model.BaseModel
import com.kf.lib_network.retrofit.HttpType
import com.kf.lib_network.retrofit.RetrofitFactory
import kotlinx.coroutines.flow.Flow

class ApplyComeModel : BaseModel() {

    fun requestApplyCome(map: Map<String, Any>): Flow<BaseEntity<ApplyComeEntity>> {
        return RetrofitFactory().createRetrofit(HttpType.TOKEN_SIGN)
            .create(ApiService::class.java)
            .requestApplyCome(createBody(map))
    }

}